<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ page import="app.mybean.*"%>
    <%Instructor ins= (Instructor)session.getAttribute("insinfo"); %>
    <% String i_id=ins.getI_id();
    Exam [] info= Manager.listAllExamInfo(i_id); %>
    <%@ page import="com.exam.domain.*"%>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- DW6 -->
<head>
<!-- Copyright 2005 Macromedia, Inc. All rights reserved. -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>学生信息首页</title>
<link rel="stylesheet" href="2col_leftNav.css" type="text/css" />
<style type="text/css">
<!--
.STYLE2 {font-size: medium}
.STYLE3 {
	color: #334d55;
	font-size: large;
	font-weight: bold;
}
body {
	background-color: #FFFFFF;
}
.STYLE7 {margin: 0px}
.STYLE8 {margin: 0px; font-size: medium; }
-->
</style>
</head>
<!-- The structure of this file is exactly the same as 2col_rightNav.html;
     the only difference between the two is the stylesheet they use -->
<body>
<div id="masthead">
  <h1 id="siteName"><img src="e-exam.gif" width="578" height="126" /></h1>
  <div class="relatedLinks" id="globalNav">
    <h1>欢迎来到在线考试系统,<%= ins.getI_name()%>老师.</h1>
  </div>
</div>
<!-- end masthead -->
<div id="content">
  <div id="breadCrumb"> <a href="#">breadcrumb</a> / <a href="#">breadcrumb</a> / <a href="#">breadcrumb</a> / </div>
  <h2 id="pageName">试题信息管理</h2>
  <div class="feature">
    <form id="form1" name="form1" method="post" action="servlet/AddExamServlet"><fieldset><legend><strong>发布考试</strong></legend>  
    <table width="409" height="90" border="1">
      <tr>
        <td width="39">考试课程编号</td>
        <td width="59">考试课程</td>
        <td width="30">考试时间</td>
        <td width="8">模板</td>
        <td width="25">发布</td>
      </tr>
      <tr>
        <td><input type=text name="courseid" size=8></td>
        <td><input type=text name="coursename" size=10></td>
        <td><input type=text name="daytime" size=5></td>
        <td><input type=text name="template" size=5></td>
        <td><input type=submit name="examsubmit" value="发布"></a></td>
        <input type=hidden name="tea_id" value=<%=ins.getI_id() %>>
      </tr>
       </table>
       </form>
       <p>已发起考试：</p>
    <table width="391" border="1">
      <tr>
        <td width="80">考试课程编号</td>
        <td width="98">考试课程</td>
        <td width="91">考试时间</td>
        <td width="43">模板</td>
        <td width="45">取消</td>
      </tr>
      <%for(int i=0;i<info.length;i++){ %>
      <tr>
        <td><%=info[i].getCourse_id() %></td>
        <td><%=info[i].getExam_name() %></td>
        <td><%=info[i].getTime() %></td>
        <td><%=info[i].getTemplate_id() %></td>
        <td><form id="form2" name="form2" method="post" action="servlet/DelExamServlet">
      <input type="submit" name="exam_del"  value="取消" />
      <input type="hidden" name="exam_id" value=<%=info[i].getExam_id() %>>
    </form></td>
      </tr>
      <%} %>        
    </table>
    <p>未批改主观题：</p>
    <table width="200" border="1">
      <tr>
        <td>题目</td>
        <td>批改</td>
      </tr>
      <tr>
        <td>XXX</td>
        <td><a href="tea_sc.html">批改</a></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
    </table>
    <p>成绩统计：</p>
    <table width="200" border="1">
      <tr>
        <td>课程</td>
        <td>查看</td>
      </tr>
      <tr>
        <td>数据结构</td>
        <td><a href="tea_qu.html">查看</a></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
    </table>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
  </div>
  <div class="story">
    <h3>&nbsp;</h3>
</div>
  <div class="story"></div>
</div>
<!--end content -->
<div id="navBar">
  <div id="search">
    <form action="#">
      <label></label>
    </form>
  </div>
  <div id="sectionLinks">
    <ul>
      <ul>
        <li><a href="#test">试题信息管理</a></li>
        <li><a href="#course">课程管理</a></li>
      </ul>
      <li><a href="#personal">题库管理</a></li>
      <li><a href="#personal">个人设定</a></li>
    </ul>
  </div>
  <div class="relatedLinks">
    <h3><span class="STYLE2"><a href="index.jsp">退出</a></span></h3>
    <h3><span class="STYLE2"><img src="title.gif" width="86" height="47" /></span></h3>
    <h3>试题信息管理<a name="test" id="test"></a></h3>
    <ul><li></li>
<li><a href="tea_test.html">考试信息发布</a></li>
      <li><a href="tea_test.html">批改主观题</a></li>
      <li><a href="tea_test.html">考试成绩统计</a></li>
      <li></li>
      <li></li>
    </ul>
  </div>
  <div class="relatedLinks">
    <h3><span class="STYLE2"><img src="title.gif" width="86" height="47" /></span></h3>
    <h3>课程管理<a name="course" id="course"></a></h3>
    <ul>
      <ul>
        <li><a href="tea_courses.html">添加知识点</a></li>
      </ul>
      <li><a href="tea_courses.html">知识点管理</a></li>
    </ul>
  </div>
  <div id="advert"></div>
  <div id="headlines">
    <h3 class="STYLE2"><img src="title.gif" width="86" height="47" /></h3>
    <div class="relatedLinks">
      <h3><span class="STYLE2">题库管理</span></span></h3>
      <ul>
        <ul>
          <li class="STYLE2"><a href="tea_qb.html">添加试题</a></li>
        </ul>
        <li><span class="STYLE2"><a href="tea_qb.html">试题库管理</a></span></li>
        <li><span class="STYLE2"><a href="tea_qb.jsp">创建试题模版</a></span></li>
      </ul>
    </div>
    <div id="div"></div>
    <div id="div2">
      <h3 class="STYLE2"><img src="title.gif" width="86" height="47" /></h3>
    </div>
    <h3 class="STYLE8">个人设定<a name="personal" id="personal"></a></h3>
    <ul class="STYLE2">
      <li class="STYLE8"><a href="tea_personal.jsp">修改密码</a></li>
      <li class="STYLE7"><a href="tea_personal.jsp">信息设定</a></li>
    </ul>
    <h3 class="STYLE2">&nbsp;</h3>
    <p><a href="index.jsp" class="STYLE3"></a></p>
  </div>
</div>
<!--end navbar -->
<div id="siteInfo"> <img src="title.gif" width="90" height="46" /> <a href="#">About Us</a> | <a href="#">Online Help </a>| <a href="#">Contact Us</a> | &copy;2011 E-EXAM.co.ltd </div>
<br />
</body>
</jsp>